package com.ourteam.product.requirement.dao.impl;

import com.ourteam.product.requirement.dao.IProductRequirementFeatureRelateDAO;
import com.ourteam.product.requirement.dao.ProductRequirementFeatureRelate;
import com.ourteam.product.requirement.dao.ProductRequirementFeatureRelateDAOQueryBean;

import net.dao.AbstractSpringDAO;
import net.dao.DataAccessObjectHelper;

import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.lang.StringUtils;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO服务对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 17 11:00:11 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:41
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class AbstractProductRequirementFeatureRelateDAOJdbcImpl
    extends AbstractSpringDAO implements IProductRequirementFeatureRelateDAO {
    public static final String[] ENTITY_FIELDS = new String[] {
            Id, ProductRequirementId, ProductFeatureId, Status, Remarks,
            ProductRequirementVersionId, ProductFeatureVersionId,
            ProductRequirementVersion, ProductRequirementVersionType,
            ProductRequirementVersionStatus, ProductFeatureVersion,
            ProductFeatureVersionType, ProductFeatureVersionStatus,
            ProductRequirementCode, ProductRequirementName,
            ProductRequirementContent, ProductRequirementType,
            ProductRequirementLevel, ProductRequirementKind,
            ProductRequirementSource, ProductFeatureCode, ProductFeatureName,
            ProductFeatureCanTest, ProductFeatureIsKeyFeature
        };
    public static final String[] ENTITY_PROPERTIES = new String[] {
            _DataObjectProperty.Id, _DataObjectProperty.ProductRequirementId,
            _DataObjectProperty.ProductFeatureId, _DataObjectProperty.Status,
            _DataObjectProperty.Remarks,
            _DataObjectProperty.ProductRequirementVersionId,
            _DataObjectProperty.ProductFeatureVersionId,
            _DataObjectProperty.ProductRequirementVersion,
            _DataObjectProperty.ProductRequirementVersionType,
            _DataObjectProperty.ProductRequirementVersionStatus,
            _DataObjectProperty.ProductFeatureVersion,
            _DataObjectProperty.ProductFeatureVersionType,
            _DataObjectProperty.ProductFeatureVersionStatus,
            _DataObjectProperty.ProductRequirementCode,
            _DataObjectProperty.ProductRequirementName,
            _DataObjectProperty.ProductRequirementContent,
            _DataObjectProperty.ProductRequirementType,
            _DataObjectProperty.ProductRequirementLevel,
            _DataObjectProperty.ProductRequirementKind,
            _DataObjectProperty.ProductRequirementSource,
            _DataObjectProperty.ProductFeatureCode,
            _DataObjectProperty.ProductFeatureName,
            _DataObjectProperty.ProductFeatureCanTest,
            _DataObjectProperty.ProductFeatureIsKeyFeature
        };
    public static final String[] ENTITY_PK_FIELDS = new String[] { Id };
    public static final String[] ENTITY_AUTO_GEN_PK_FIELDS = new String[] { Id };
    public static final String[] ENTITY_UNIQUE_FIELDS = new String[] {  };
    private static String relatedJoinSQL = null;
    private static String basicFilterSQL = null;
    private DataAccessObjectHelper<ProductRequirementFeatureRelate, ProductRequirementFeatureRelateDAOQueryBean> daoHelper;

    public AbstractProductRequirementFeatureRelateDAOJdbcImpl() {
        super();
        daoHelper = new DataAccessObjectHelper<ProductRequirementFeatureRelate, ProductRequirementFeatureRelateDAOQueryBean>(this);
    }

    protected String getEntityName() {
        return EntityName;
    }

    protected String[] getEntityFields() {
        return ENTITY_FIELDS;
    }

    protected String[] getEntityProperties() {
        return ENTITY_PROPERTIES;
    }

    protected String[] getEntityPKFields() {
        return ENTITY_PK_FIELDS;
    }

    protected String[] getEntityAutoGenPKFields() {
        return ENTITY_AUTO_GEN_PK_FIELDS;
    }

    protected String[] getEntityUniqueFields() {
        return ENTITY_UNIQUE_FIELDS;
    }

    protected String getBaiscQueryFilter() {
        if (basicFilterSQL == null) {
            StringBuffer basicFilterSQLbuffer = new StringBuffer();

            basicFilterSQL = basicFilterSQLbuffer.toString();
        }

        return basicFilterSQL;
    }

    protected String getRelatedJoinSQL() {
        if (relatedJoinSQL == null) {
            StringBuffer relatedJoinSQLBuffer = new StringBuffer();

            relatedJoinSQLBuffer.append(" LEFT JOIN ")
                                .append(com.ourteam.product.requirement.dao.IProductVersionDAO.EntityName)
                                .append(" RELATED_IDPRZL_ProductVersion ");

            relatedJoinSQLBuffer.append(" ON ( ");

            relatedJoinSQLBuffer.append(StringUtils.replace(
                    com.ourteam.product.requirement.dao.IProductVersionDAO.Id,
                    com.ourteam.product.requirement.dao.IProductVersionDAO.EntityName +
                    ".", "RELATED_IDPRZL_ProductVersion."));
            relatedJoinSQLBuffer.append(" = ")
                                .append(ProductRequirementVersionId);

            relatedJoinSQLBuffer.append(" ) ");

            relatedJoinSQLBuffer.append(" LEFT JOIN ")
                                .append(com.ourteam.product.requirement.dao.IProductVersionDAO.EntityName)
                                .append(" RELATED_YO9ZYD_ProductVersion ");

            relatedJoinSQLBuffer.append(" ON ( ");

            relatedJoinSQLBuffer.append(StringUtils.replace(
                    com.ourteam.product.requirement.dao.IProductVersionDAO.Id,
                    com.ourteam.product.requirement.dao.IProductVersionDAO.EntityName +
                    ".", "RELATED_YO9ZYD_ProductVersion."));
            relatedJoinSQLBuffer.append(" = ").append(ProductFeatureVersionId);

            relatedJoinSQLBuffer.append(" ) ");

            relatedJoinSQLBuffer.append(" LEFT JOIN ")
                                .append(com.ourteam.product.requirement.dao.IProductRequirementDAO.EntityName)
                                .append(" PRODUCT_REQUIREMENT ");

            relatedJoinSQLBuffer.append(" ON ( ");

            relatedJoinSQLBuffer.append(StringUtils.replace(
                    com.ourteam.product.requirement.dao.IProductRequirementDAO.Id,
                    com.ourteam.product.requirement.dao.IProductRequirementDAO.EntityName +
                    ".", "PRODUCT_REQUIREMENT."));
            relatedJoinSQLBuffer.append(" = ").append(ProductRequirementId);

            relatedJoinSQLBuffer.append(" ) ");

            relatedJoinSQLBuffer.append(" LEFT JOIN ")
                                .append(com.ourteam.product.requirement.dao.IProductFeatureDAO.EntityName)
                                .append(" PRODUCT_FEATURE ");

            relatedJoinSQLBuffer.append(" ON ( ");

            relatedJoinSQLBuffer.append(StringUtils.replace(
                    com.ourteam.product.requirement.dao.IProductFeatureDAO.Id,
                    com.ourteam.product.requirement.dao.IProductFeatureDAO.EntityName +
                    ".", "PRODUCT_FEATURE."));
            relatedJoinSQLBuffer.append(" = ").append(ProductFeatureId);

            relatedJoinSQLBuffer.append(" ) ");

            relatedJoinSQL = relatedJoinSQLBuffer.toString();
        }

        return relatedJoinSQL;
    }

    /**
         * Check Data Unique
         * @param aProductRequirementFeatureRelate
         * @throws Exception
         */
    public boolean checkIsUnique(
        ProductRequirementFeatureRelate aProductRequirementFeatureRelate)
        throws Exception {
        if (aProductRequirementFeatureRelate == null) {
            return true;
        }

        List valueList = new ArrayList();

        List pkValueList = new ArrayList();

        pkValueList.add(aProductRequirementFeatureRelate.getId());

        return isUnique(valueList.toArray(new Object[valueList.size()]),
            pkValueList.toArray(new Object[pkValueList.size()]));
    }

    /**
     * Insert Data
     * @param aProductRequirementFeatureRelate
     * @throws Exception
     */
    public void insert(
        ProductRequirementFeatureRelate aProductRequirementFeatureRelate)
        throws Exception {
        super.doInsert(aProductRequirementFeatureRelate);
    }

    /**
         * Batch Insert Datas
         * @param aProductRequirementFeatureRelate
         * @throws Exception
         */
    public void batchInsert(
        ProductRequirementFeatureRelate[] aProductRequirementFeatureRelates)
        throws Exception {
        super.doBatchInsert(aProductRequirementFeatureRelates);
    }

    /**
         * Delete Data
         * @param  final long id         *
         * @throws Exception
         */
    public void delete(final long id) throws Exception {
        super.doDeleteById(new Object[] { new Long(id) });
    }

    /**
     * Delete Datas
     * @param queryBean
     * @throws Exception
     */
    public void delete(ProductRequirementFeatureRelateDAOQueryBean queryBean)
        throws Exception {
        super.doDeleteByQuery(queryBean);
    }

    public void delete(
        ProductRequirementFeatureRelate aProductRequirementFeatureRelate)
        throws Exception {
        delete(aProductRequirementFeatureRelate.getId());
    }

    /**
     * Update Data Selective
     * @param aProductRequirementFeatureRelate
     * @throws Exception
     */
    public void update(
        ProductRequirementFeatureRelate aProductRequirementFeatureRelate)
        throws Exception {
        if (aProductRequirementFeatureRelate.getId() == 0) {
            throw new Exception(
                "Can not update object data whith out primary key value");
        }

        super.doUpdate(aProductRequirementFeatureRelate);

        ProductRequirementFeatureRelate tempObj = findById(aProductRequirementFeatureRelate.getId());

        if (tempObj != null) {
            PropertyUtils.copyProperties(aProductRequirementFeatureRelate,
                tempObj);
        }
    }

    /**
     * Batch Update Datas
     * @param aProductRequirementFeatureRelates[]
     * @throws Exception
     */
    public void batchUpdate(
        ProductRequirementFeatureRelate[] aProductRequirementFeatureRelates)
        throws Exception {
        super.doBatchUpdate(aProductRequirementFeatureRelates);
    }

    /**
         * Update Data By Condictions
         * @param aProductRequirementFeatureRelate
         * @param aValueCriteria
         * @param aTransaction
         * @throws Exception
         */
    public void update(
        ProductRequirementFeatureRelate aProductRequirementFeatureRelate,
        ProductRequirementFeatureRelateDAOQueryBean aQueryBean)
        throws Exception {
        super.doUpdateByQuery(aProductRequirementFeatureRelate, aQueryBean);
    }

    /**
     * Update Data By Condictions
     * @param aQueryBean
     * @throws Exception
     */
    public void update(ProductRequirementFeatureRelateDAOQueryBean aQueryBean)
        throws Exception {
        super.doUpdateByQuery(aQueryBean);
    }

    protected void checkNullValue(
        ProductRequirementFeatureRelate aProductRequirementFeatureRelate)
        throws Exception {
        if (aProductRequirementFeatureRelate.getStatus() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.status value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getRemarks() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.remarks value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductRequirementCode() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productRequirementCode value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductRequirementName() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productRequirementName value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductRequirementContent() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productRequirementContent value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductRequirementType() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productRequirementType value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductRequirementLevel() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productRequirementLevel value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductFeatureCode() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productFeatureCode value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductFeatureName() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productFeatureName value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductFeatureCanTest() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productFeatureCanTest value is not allow NULL");
        }

        if (aProductRequirementFeatureRelate.getProductFeatureIsKeyFeature() == null) {
            throw new Exception(
                "The ProductRequirementFeatureRelate.productFeatureIsKeyFeature value is not allow NULL");
        }
    }

    /**
     * Get Data By ID
     * @param  final long id         * @return  ${businessObject.name}
     * @throws Exception
     */
    public ProductRequirementFeatureRelate findById(final long id)
        throws Exception {
        ProductRequirementFeatureRelateDAOQueryBean queryBean = new ProductRequirementFeatureRelateDAOQueryBean();

        ProductRequirementFeatureRelateDAOQueryBean.Criteria criteria = queryBean.createCriteria();

        criteria.andIdEqualTo(id);

        //queryBean.setDistinct(true);
        ProductRequirementFeatureRelate[] ProductRequirementFeatureRelates = query(queryBean);

        if (ProductRequirementFeatureRelates.length == 0) {
            return null;
        } else {
            return ProductRequirementFeatureRelates[0];
        }
    }

    /**
         * Query Data
         * @param queryBean
         * @return ProductRequirementFeatureRelate[]
         * @throws Exception
         */
    public ProductRequirementFeatureRelate[] query(
        ProductRequirementFeatureRelateDAOQueryBean queryBean)
        throws Exception {
        List result = super.doQuery(queryBean,
                new JdbcProductRequirementFeatureRelateRowMapper());

        return (ProductRequirementFeatureRelate[]) result.toArray(new ProductRequirementFeatureRelate[result.size()]);
    }

    /**
     * Query ${businessObject.name} Selective
     * @param queryBean
     * @return Map[]
     * @model
     * @throws Exception
     */
    public Map<String, Object>[] querySelective(
        ProductRequirementFeatureRelateDAOQueryBean queryBean)
        throws Exception {
        if (queryBean.getSelectProperties().isEmpty()) {
            queryBean.addAllSelectProperties();
        }

        return super.doQuerySelective(queryBean);
    }

    /**
     * Query Data Count
     * @param queryBean
     * @return int
     * @throws Exception
     */
    public int queryCount(ProductRequirementFeatureRelateDAOQueryBean queryBean)
        throws Exception {
        return super.doQueryCount(queryBean);
    }

    public void synchronize(
        ProductRequirementFeatureRelate[] aProductRequirementFeatureRelates,
        ProductRequirementFeatureRelateDAOQueryBean queryBean)
        throws Exception {
        daoHelper.synchronize(aProductRequirementFeatureRelates, queryBean);
    }

    public void synchronize(
        ProductRequirementFeatureRelate[] aProductRequirementFeatureRelates,
        ProductRequirementFeatureRelateDAOQueryBean queryBean,
        net.dao.IDataAccessInterface.ISynchronizeCallback<ProductRequirementFeatureRelate> callBack)
        throws Exception {
        daoHelper.synchronize(aProductRequirementFeatureRelates, queryBean,
            callBack);
    }

    public static class JdbcProductRequirementFeatureRelateRowMapper
        implements RowMapper<ProductRequirementFeatureRelate> {
        public ProductRequirementFeatureRelate mapRow(ResultSet resultSet,
            int arg1) throws SQLException {
            ProductRequirementFeatureRelate object = new ProductRequirementFeatureRelate();

            int columnIndex = 1;

            int __dataType;

            try {
                Object id = null;

                id = resultSet.getObject(columnIndex++);

                object.setIdNull(resultSet.getBoolean(columnIndex++));

                if (id != null) {
                    setBeanValue(object, _DataObjectProperty.Id, id);
                }

                Object productRequirementId = null;

                productRequirementId = resultSet.getObject(columnIndex++);

                object.setProductRequirementIdNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementId != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementId,
                        productRequirementId);
                }

                Object productFeatureId = null;

                productFeatureId = resultSet.getObject(columnIndex++);

                object.setProductFeatureIdNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureId != null) {
                    setBeanValue(object, _DataObjectProperty.ProductFeatureId,
                        productFeatureId);
                }

                Object status = null;

                status = resultSet.getObject(columnIndex++);

                object.setStatusNull(resultSet.getBoolean(columnIndex++));

                if (status != null) {
                    setBeanValue(object, _DataObjectProperty.Status, status);
                }

                Object remarks = null;

                remarks = resultSet.getObject(columnIndex++);

                object.setRemarksNull(resultSet.getBoolean(columnIndex++));

                if (remarks != null) {
                    setBeanValue(object, _DataObjectProperty.Remarks, remarks);
                }

                Object productRequirementVersionId = null;

                productRequirementVersionId = resultSet.getObject(columnIndex++);

                object.setProductRequirementVersionIdNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementVersionId != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementVersionId,
                        productRequirementVersionId);
                }

                Object productFeatureVersionId = null;

                productFeatureVersionId = resultSet.getObject(columnIndex++);

                object.setProductFeatureVersionIdNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureVersionId != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureVersionId,
                        productFeatureVersionId);
                }

                Object productRequirementVersion = null;

                productRequirementVersion = resultSet.getObject(columnIndex++);

                object.setProductRequirementVersionNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementVersion != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementVersion,
                        productRequirementVersion);
                }

                Object productRequirementVersionType = null;

                productRequirementVersionType = resultSet.getObject(columnIndex++);

                object.setProductRequirementVersionTypeNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementVersionType != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementVersionType,
                        productRequirementVersionType);
                }

                Object productRequirementVersionStatus = null;

                productRequirementVersionStatus = resultSet.getObject(columnIndex++);

                object.setProductRequirementVersionStatusNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementVersionStatus != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementVersionStatus,
                        productRequirementVersionStatus);
                }

                Object productFeatureVersion = null;

                productFeatureVersion = resultSet.getObject(columnIndex++);

                object.setProductFeatureVersionNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureVersion != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureVersion,
                        productFeatureVersion);
                }

                Object productFeatureVersionType = null;

                productFeatureVersionType = resultSet.getObject(columnIndex++);

                object.setProductFeatureVersionTypeNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureVersionType != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureVersionType,
                        productFeatureVersionType);
                }

                Object productFeatureVersionStatus = null;

                productFeatureVersionStatus = resultSet.getObject(columnIndex++);

                object.setProductFeatureVersionStatusNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureVersionStatus != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureVersionStatus,
                        productFeatureVersionStatus);
                }

                Object productRequirementCode = null;

                productRequirementCode = resultSet.getObject(columnIndex++);

                object.setProductRequirementCodeNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementCode != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementCode,
                        productRequirementCode);
                }

                Object productRequirementName = null;

                productRequirementName = resultSet.getObject(columnIndex++);

                object.setProductRequirementNameNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementName != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementName,
                        productRequirementName);
                }

                Object productRequirementContent = null;

                productRequirementContent = resultSet.getObject(columnIndex++);

                object.setProductRequirementContentNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementContent != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementContent,
                        productRequirementContent);
                }

                Object productRequirementType = null;

                productRequirementType = resultSet.getObject(columnIndex++);

                object.setProductRequirementTypeNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementType != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementType,
                        productRequirementType);
                }

                Object productRequirementLevel = null;

                productRequirementLevel = resultSet.getObject(columnIndex++);

                object.setProductRequirementLevelNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementLevel != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementLevel,
                        productRequirementLevel);
                }

                Object productRequirementKind = null;

                productRequirementKind = resultSet.getObject(columnIndex++);

                object.setProductRequirementKindNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementKind != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementKind,
                        productRequirementKind);
                }

                Object productRequirementSource = null;

                productRequirementSource = resultSet.getObject(columnIndex++);

                object.setProductRequirementSourceNull(resultSet.getBoolean(
                        columnIndex++));

                if (productRequirementSource != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductRequirementSource,
                        productRequirementSource);
                }

                Object productFeatureCode = null;

                productFeatureCode = resultSet.getObject(columnIndex++);

                object.setProductFeatureCodeNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureCode != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureCode,
                        productFeatureCode);
                }

                Object productFeatureName = null;

                productFeatureName = resultSet.getObject(columnIndex++);

                object.setProductFeatureNameNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureName != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureName,
                        productFeatureName);
                }

                Object productFeatureCanTest = null;

                productFeatureCanTest = resultSet.getObject(columnIndex++);

                object.setProductFeatureCanTestNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureCanTest != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureCanTest,
                        productFeatureCanTest);
                }

                Object productFeatureIsKeyFeature = null;

                productFeatureIsKeyFeature = resultSet.getObject(columnIndex++);

                object.setProductFeatureIsKeyFeatureNull(resultSet.getBoolean(
                        columnIndex++));

                if (productFeatureIsKeyFeature != null) {
                    setBeanValue(object,
                        _DataObjectProperty.ProductFeatureIsKeyFeature,
                        productFeatureIsKeyFeature);
                }

                return object;
            } catch (Exception e) {
                throw new SQLException(e.getMessage());
            }
        }
    }
}
